<?php
/*************************\
e107bb Installation Script
by DIPOrg.com
GNU GPL (http://gnu.org)
\*************************/
require_once("../../../class2.php");
if(!getperms("P")){ header("location:".e_BASE."index.php"); exit; }
require_once(e_ADMIN.'auth.php');
require_once(e_ADMIN."header.php");
      $selectmonster="SELECT * from e107_cipconf where conf_name='installed'";
      $selectmonster2=mysql_query($selectmonster) or die("could not select monster");
	$selectmonster3=mysql_fetch_array($selectmonster2);
if ($selectmonster3[conf_result]==0) {} else { die("Are you sure you want to config another phpbb installation?"); }
$text = "<font size='5'> e107bb Installation Script</font><br/><br/>";
$forumpath=$_GET[website]."/";
if ($forumpath=="no")
{
$text .= "<br/>You don't have a phpBB installation? Go to<br/>";
$ns -> tablerender("e107bb Installation Script", $text);
require_once(e_ADMIN."footer.php");
exit;
}
if ($forumpath=="e107forum")
{
$text .= "<br/>Import the e107Forum?<br/>";
$ns -> tablerender("e107bb Installation Script", $text);
require_once(e_ADMIN."footer.php");
exit;
}

$text .= "<b>The script will now compare some variables... And next you will need to do what is write</b><br/>";
require_once('./configcheck.php');
require_once('./config.php');
if ($dbhost==$e1server)
{
//$text .= $dbhost." and ".$e1server." same<br/>";
if ($dbuser==$e1userna)
{
//$text .= $dbuser." and ".$e1userna." same<br/>";
if ($dbname==$e1daname)
{
$text .= $ifyeso;
}
else 
{ 
$text .= $ifnouo;
}
}
else 
{ 
$text .= $ifnouo;
}
}
else 
{ 
$text .= $ifnouo;
}
$text .= "<br/>You finished? Please<a href='stinstall.php?website=$_GET[website]'>Continue</a>!";

$ns -> tablerender("e107bb Installation Script", $text);

require_once(e_ADMIN."footer.php");
?>